home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / util / gnu / sed_2_05.lha / sed-2.05 / SMakefile < prev    next >
Makefile  |  1995-01-20  |  3KB  |  101 lines

  1. # Makefile for GNU SED, a batch editor.
  2. # Copyright (C) 1987, 1991 Free Software Foundation, Inc.
  3. #
  4. # Specific modifications for SAS/C++ 6.51 by Andreas Scherer.
  5. #
  6. # This file is NOT part of GNU SED.
  7. # GNU SED is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. # GNU SED is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. # GNU General Public License for more details.
  15. # You should have received a copy of the GNU General Public License
  16. # along with GNU SED; see the file COPYING.  If not, write to
  17. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19. #### Start of system configuration section. ####
  20.  
  21. CC = sc
  22. WMERGE = wmerge
  23. INSTALL = copy clone
  24.  
  25. # Things you might add to DEFS:
  26. # STDC_HEADERS        If you have ANSI C headers and libraries.
  27. # USG            If you have System V/ANSI C string
  28. #            and memory functions and headers.
  29. # __CHAR_UNSIGNED__    If type `char' is unsigned.
  30. #            gcc defines this automatically.
  31. # NO_VFPRINTF        If you lack vprintf function (but have _doprnt).
  32.  
  33. DEFS = define=_STRICT_ANSI define=STDC_HEADERS
  34. LIBS =
  35.  
  36. CFLAGS = math=standard noicons stackextend optimize
  37. LDFLAGS = math=standard noicons
  38. extra_objs = ansialloca.o
  39.  
  40. prefix = Programmer:other
  41. exec_prefix = $(prefix)
  42.  
  43. # Prefix for each installed program, normally empty or `g'.
  44. binprefix = 
  45.  
  46. # Where to install the executable.
  47. bindir = $(exec_prefix)/bin
  48.  
  49. #### End of system configuration section. ####
  50.  
  51. objs = ansised.o ansiutils.o ansirx.o ansigetopt.o getopt1.o
  52. srcs = sed.c utils.c rx.c getopt.c getopt1.c alloca.c
  53.  
  54. distfiles = COPYING COPYING.LIB ChangeLog README ABOUT.RX INSTALL Makefile.in \
  55.   configure configure.in rx.h getopt.h $(srcs)
  56.  
  57. all_objs= $(objs) $(extra_objs)
  58.  
  59. all:    sed
  60.  
  61. install: all
  62.     $(INSTALL) sed $(bindir)/$(binprefix)sed
  63.  
  64. .c.o:
  65.     $(CC) $(CPPFLAGS) $(DEFS) $(CFLAGS) idir=$(srcdir) $<
  66.  
  67. sed:    $(all_objs)
  68.     $(CC) link to $@ $(LDFLAGS) $(all_objs) $(LIBS)
  69.  
  70. ansised.o ansirx.o: rx.h 
  71. ansised.o getopt1.o: getopt.h
  72.  
  73. clean:
  74.     -delete \#?.(bak|lnk|o) ansi\#?.c
  75.  
  76. veryclean: clean
  77.     -delete sed
  78.  
  79. ansialloca.o: ansialloca.c 
  80. ansialloca.c: alloca.c alloca.ch
  81.     $(WMERGE) alloca.c alloca.ch ansialloca.c
  82.  
  83. ansigetopt.o: ansigetopt.c
  84. ansigetopt.c: getopt.c getopt.ch
  85.     $(WMERGE) getopt.c getopt.ch ansigetopt.c
  86.  
  87. ansirx.o: ansirx.c
  88. ansirx.c: rx.c rx.ch
  89.     $(WMERGE) rx.c rx.ch ansirx.c
  90.  
  91. ansised.o: ansised.c
  92. ansised.c: sed.c sed.ch
  93.     $(WMERGE) sed.c sed.ch ansised.c
  94.  
  95. ansiutils.o: ansiutils.c
  96. ansiutils.c: utils.c utils.ch
  97.     $(WMERGE) utils.c utils.ch ansiutils.c
  98.